package bavaria.hightech.banking.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * ActionListener for the Quit command from the menu. closes the Frame
 * 
 * @author Dietmar
 */
public class ListenerQuit implements ActionListener {

	private Frame frame;

	public ListenerQuit(Frame frame) {
		this.frame = frame;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		frame.setVisible(false);
		frame.dispose();
	}

}
